# while 1:
#     num1=input("请输入数学成绩：")
#     if num1.isdigit():
#         print(int(num1))
#         num2=input("请输入语文成绩：")
#         if num2.isdigit():
#             print(int(num2))
#         else:
#             print('语文成绩输入错误，请重新输入')
#     else:
#         print('数学成绩输入错误，请重新输入')

# num1=input("请输入数学成绩：")
# num2=input("请输入语文成绩：")
# num3=input("请输入英语成绩：")
# num4=input("请输入综合成绩：")
# print(f'数学成绩{num1},语文成绩{num2}，英语成绩{num3}，综合成绩{num4}')
#

# words='abcdef'
# for word in words:
#     print(word)
# words=['a','b',2]
# for word in words:
#     print(word)

# words=1222
# for word in words:
#     print(word,type(word))
# words=(1,2.5,a)
# for word in words:
#     print(word,type(word))

# words_info={'shuzi':[2,3],'xingm':'1haha'}
# print(words_info)

# words= {'姓名':"xuefei","nianling":18,'sex':'女'}
# # for word in words:
# #     print(word,type(word))
# for word in words.keys():
#     print(word, type(word))
# for word in words.values():
#     print(word, type(word))
# for word in words.items():
#     print(word, type(word))
# for a,b in words.items():
#     print(f'我的{a}是{b}')
# a,b=22,34
# print(a)
# print(b)
# a,b=b,a
# print("a=",a)
# print("b=",b)

# list_x=[1,2,2,4]
# print(list_x)

# range(2,10)
# print(range(2,10))
# print(list(range(2,10)))

# for a in range(2,10):
#     print(a)

# for m in range(1,10,3):
#     print(m)

# for m in range(1,10):
#     for n in range(1,m+1):
#         print(f'{n}*{m}={m*n}',end='\t')
#     print('')
# def add(name):
#     print(f'我是{name}，很高兴认识大家')
#
# add('刘雪霏')
# add('唐康')
# while 1:
#      num1=input("请输入数学成绩：")
#      if num1.isdigit():
#          print(int(num1))
#          break
#      else:
#          print('数学成绩输入错误，请重新输入')
#
# def math_info(x):
#     y=x*3+1
#     print(f'y={y}')
# math_info(2)
# math_info(5)

# def math_info(a=2):
#     b=a**3-1
#     print(f'a={a}时b={b}')
#     return a,b,a*b
# result=math_info()
# math_info(5)
# print(result)
# x,y,smaller=8,5,0


#冒泡
# def Bubble_Sort(list_x):
#     for m in range(len(list_x)-1):
#         for n in range(len(list_x) - 1 - m):
#             if list_x[n] > list_x[n + 1]:
#                 list_x[n], list_x[n + 1] = list_x[n + 1], list_x[n]
#     print(list_x)
#     return list_x

# list_a = [6,8,4,9,1,3,2,7,5]
# for n in range(len(list_a)-1):
#     for m in range(len(list_a)-1-n):
#         if list_a[m]>list_a[m+1]:
#             list_a[m],list_a[m + 1]=list_a[m+1],list_a[m]
# print(list_a)







# list_a = [6,8,4,9,1,3,2,7,5]
# for n in range(len(list_a)-1):
#     for m in range(len(list_a)-1):
#         if  list_a[m]>list_a[m+1]:
#             list_a[m],list_a[m + 1]= list_a[m+1],list_a[m]
# print(list_a)



# list_a = [9,5,6,8,2,7,3,4,1]
# for m in range(len(list_x)-1):
#     for n in range(len(list_x)-1-m):
#         print(n,n+1)
#         if list_x[n]>list_x[n+1]:
#             list_x[n],list_x[n+1]=list_x[n+1],list_x[n]
#         print(list_x)#第一轮，确定最大值
#
#
#     # for m in range(len(list_x)-1)

# input('请依此输入数学，语文，英语，综合成绩：').split(',')
# a=input("请输入数学，语文，英语，综合成绩：").split(',')
# for i in range(len(a)):
#     while a[i].isdigit()==False:
#         a[i]=input(f'请重新输入第{i+1}门成绩：')
#     a[i]=int(a[i])




# n=input('请依次输入数学，语文，英语，综合成绩：').split(',')
# for a in range(len(n)):
#     while n[a].isdigit()==False:
#         n[a]=input(f'请重新输入第{a+1}门成绩：')
#     n[a]=int(n[a])
# print(n)
# Bubble_Sort(n)
# print(Bubble_Sort(n)[-1])


# import random
#
# num=random.randint(1,100)
# print(num)
# num1=int(input("请输入猜到的数字："))
# while 1:
#     if num1==num:
#         print("恭喜您猜对了")
#         break
#     elif num1>num:
#         print("数字猜高拉")
#     else:
#         print("数字猜低啦")
#     num2 = int(input("请重新输入猜到的数字："))

# num1=int(input("请输入猜到的数字："))
#
# while num!=num1:
#     if num>num1:
#         print("数字猜高啦")
#     else:
#         print('数字猜低啦')
#     num2=int(input("请重新输入猜到的数字："))
# if num==num1:
#     print('恭喜您猜对了')

# class oblong():
#     def __init__(self,a,b):
#         self.x=a
#         self.y=b
#     def cir(self):
#         print(self.x+self.x+self.y+self.y)
#     def sou(self):
#         print(self.x*self.y)
# mm=oblong(1,3)
# mm.cir()
# mm.sou()

#类的练习
# class math():
#     def __init__(self,a,b):
#         self.x=a
#         self.y=b
#     def add(self):
#         self.z=self.x+self.y
#         print(self.z)
#     def subtract(self):
#         self.m=self.x-self.y
#         print(self.m)
#     def mul(self):
#         print(self.x*self.y)
#     def div(self,x,y):
#         print(self.x/self.y)
#     def all(self):
#         h=self.z*self.m
#         print(h)
# mm=math(1,2)
# mm.add()
# mm.subtract()
# mm.mul()
# mm.div(1,2)
# mm.all()



    # def sou(self):
    #     print(self.x*self.y)
# ob=oblong(1,2)
# ob.cir()
# ob.sou()


# aa={'a':'b',"c":"d"}
# print(aa['a'])


# n=int(input("请输入一个整数："))
# n1=input("请输入%d个正整数,用逗号分隔"%n)
# ns_list=n1.split(',')
# ns_list_1=list(map(int,ns_list))
# new_list=[]
# for m in range(n):
#     for n in range(n):
#         if m!=n:
#             new_list.append(abs(ns_list_1[m]-ns_list_1[n]))
#             print(new_list)
# print(min(new_list))


for m in range(1,10):
    for n in range(1,m+1):
        # print(n)
    # print(m)
        print(f'{n}*{m}={m*n}',end="\t")
    print()





















